package state;

/**
 * @ClassName Human
 * @Description TODO
 * @Author leejiliang
 * @DateTime 2021/7/23 14:26
 * @Version 1.0
 */
public class Human {
	public static final HumanState CHILD = new Child();
	public static final HumanState AUDIT = new Audit();
	public static final HumanState OLD = new Old();

	private HumanState state;

	public void setState(HumanState state) {
		this.state = state;
	}

	public void doWork() {
		this.state.doWork();
	}
}
